class DevConfig:
    SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:123@127.0.0.1:3306/flask_love'
    SQLALCHEMY_TRACK_MODIFICATIONS = False


CITY_MAP = {
    "东城区": True, "西城区": True
}
WIDTH = 200
HEIGHT = 50


REDIS_IMG_CODE_KEY = 'code_'
REDIS_MSG_CODE_KEY = 'msg_'

REQUEST_FORMAT_CODE = {
    200: '成功',
    204: '验证码 错误',
    205: 'token 错误',
    206: '账号密码 错误',
    407: '未知错误码'
}